﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

namespace HZ.DrugTrade.Web.Admin
{
    public partial class defaultContent : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //StringBuilder javascript = new StringBuilder();
            //javascript.AppendLine("<script type=\"text/javascript\">");
            //javascript.AppendFormat("window.showModalDialog('defaultContent.aspx?addnew&time='+(new Date()).getMilliseconds(),'','dialogWidth:600px;scroll:no');");
            //javascript.AppendLine("</script>");
            //this.ClientScript.RegisterStartupScript(this.GetType(), "key", javascript.ToString());
            string roleId = CurrentAccount.GetUser().UserRole.RoleID;
            ClientScript.RegisterStartupScript(this.GetType(), "", "window.showModalDialog('/OutTimeWarning.aspx?roleId=" + roleId + "', '', 'scroll:yes;status:no;resizable:no;dialogWidth:1024px;dialogHeight:600px;center:yes;');", true);
        }
    }
}
